/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.qframe.client.quicklet;

/**
 * The factory acts a producer for Handler and Quicklets
 *
 * @author gprasad
 */
public class QuickletFactory {

    public static native void init()/*-{
    @org.qframe.client.generated.HandlerRegisteration::registerAll()();
    }-*/;

    public static native IQHandler get(String quickletId, String slotId)/*-{
    return @org.qframe.client.generated.HandlerRegisteration::get(Ljava/lang/String;Ljava/lang/String;)(quickletId,slotId);
    }-*/;

    public static native String getQuickletPath(String quickletId)/*-{
    return @org.qframe.client.generated.HandlerRegisteration::getQuickletPath(Ljava/lang/String;)(quickletId);
    }-*/;

    public static void test(String quickletId, String slotId) {

    }
}
